package com.wgts.wgts.dagger.module;

import com.wgts.wgts.dagger.scope.ActivityScope;
import com.wgts.wgts.mvp.model.IHomePageContentFragmentModle;
import com.wgts.wgts.mvp.model.IHomePageCurrencyActivityModel;
import com.wgts.wgts.mvp.model.imp.HomePageCurrencyActivityModel;
import com.wgts.wgts.mvp.presenter.IHomePageCurrencyActivityPresenter;
import com.wgts.wgts.mvp.presenter.imp.HomePageCurrencyActivityPresenter;
import com.wgts.wgts.mvp.view.IHomePageCurrencyActivityView;
import com.wgts.wgts.netmodle.NetService;

import dagger.Module;
import dagger.Provides;

@Module
public class HomePageCurrencyActivityModule {

    private IHomePageCurrencyActivityView view;

    public HomePageCurrencyActivityModule(IHomePageCurrencyActivityView view) {
        this.view = view;
    }

    @Provides
    @ActivityScope
    public IHomePageCurrencyActivityView provideView(){
        return view;
    }

    @Provides
    @ActivityScope
    public IHomePageCurrencyActivityModel provideModel(NetService netService){
        return new HomePageCurrencyActivityModel(netService);
    }

    @Provides
    @ActivityScope
    public IHomePageCurrencyActivityPresenter providePresenter(IHomePageCurrencyActivityModel model, IHomePageCurrencyActivityView view){
        return new HomePageCurrencyActivityPresenter(view, model);
    }
}
